import { RouteRecordRaw } from "vue-router";
// /* webpackChunkName: "Index" */ 这个用于打包构建拆解不同的模块，用于性能优化 "Index" 为模块名称 可在dist查看
const routeList: Array<RouteRecordRaw> = [
  {
    path: "/m/",
    name: "MIndex",
    meta: {
      title: "首页",
    },
    component: () =>
      import(/* webpackChunkName: "MIndex" */ "@/mobile/Index/index.vue"),
  },
  {
    path: "/m/login", //常用于详情页面动态查询用/xxxxxx 代替?=xxxxxx
    name: "MLogin",
    meta: {
      title: "登录",
    },
    component: () =>
      import(/* webpackChunkName: "MLogin" */ "@/mobile/Login/login.vue"),
  },
  {
    path: "/m/userInfo",
    name: "MUserInfo",
    meta: {
      title: "账户",
    },
    component: () =>
      import(
        /* webpackChunkName: "MUserindex" */ "@/mobile/UserInfo/index.vue"
      ),
  },
  {
    path: "/m/info",
    name: "info",
    meta: {
      title: "用户信息",
    },
    component: () =>
      import(/* webpackChunkName: "Minfo" */ "@/mobile/UserInfo/info.vue"),
  },
  {
    path: "/m/product",
    name: "product",
    meta: {
      title: "产品信息",
    },
    component: () =>
      import(
        /* webpackChunkName: "Mproduct" */ "@/mobile/UserInfo/product.vue"
      ),
  },
  {
    path: "/m/power",
    name: "power",
    meta: {
      title: "用户权限",
    },
    component: () =>
      import(/* webpackChunkName: "Mpower" */ "@/mobile/UserInfo/power.vue"),
  },
  {
    path: "/m/history",
    name: "MHistory",
    meta: {
      title: "登录历史",
    },
    component: () =>
      import(/* webpackChunkName: "MHistory" */ "@/mobile/History/index.vue"),
  },
  {
    path: "/m/Map/:id",
    name: "MMap",
    meta: {
      title: "MAP",
    },
    component: () =>
      import(/* webpackChunkName: "MMap" */ "@/mobile/Map/index.vue"),
  },
  {
    path: "/m/a2/:id",
    name: "MA2",
    meta: {
      title: "A2",
    },
    component: () =>
      import(/* webpackChunkName: "MA2" */ "@/mobile/A2/index.vue"),
  },
  {
    path: "/m/a3/:id",
    name: "MA3",
    meta: {
      title: "A3",
    },
    component: () =>
      import(/* webpackChunkName: "MA3" */ "@/mobile/A3/index.vue"),
  },
  {
    path: "/m/b1/:id",
    name: "MB1",
    meta: {
      title: "B1",
    },
    component: () =>
      import(/* webpackChunkName: "MB1" */ "@/mobile/B1/index.vue"),
  },
  {
    path: "/m/b2/:id/:type/:remark",
    name: "MB2",
    meta: {
      title: "B2",
    },
    component: () =>
      import(/* webpackChunkName: "MB2" */ "@/mobile/B2/index.vue"),
  },
];
const routes: Array<RouteRecordRaw> = routeList;
export default routes;
